layui.use(['dropdown', 'util', 'layer', 'table'], function() {
	var dropdown = layui.dropdown
		, util = layui.util
		, layer = layui.layer
		, table = layui.table
		, $ = layui.jquery;

	dropdown.render({
		elem: '.demo1'
		, data: [{
			title: '学生'
			, id: 100
		}, {
			title: '教职工'
			, id: 101
		}, {
			title: '管理员'
			, id: 102
		}]
		, click: function(obj) {
		//	this.elem.val = obj.title;
		    var a = document.getElementById("status");
		    a.value = obj.title;
			a.textContent = obj.title;
			var b = document.getElementById("statusValue");
			b.value =obj.title.toString();
			//alert(a.value);
			layer.tips('已选择：'+ obj.title, this.elem, {tips: [1, '#2691d9']})
		}
	});

});